//
//  GXCycleImages.h
//  16-UICollectionViewCycleImage
//
//  Created by 曹曹 on 16/8/4.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import <UIKit/UIKit.h>


@class GXCycleImagesCell;

@protocol clickCellDelegate <NSObject>

- (void)collectionView:(UICollectionView *)collectionView didSelectItem:(GXCycleImagesCell *)cell AtIndexPath:(NSIndexPath *)indexPath;
@end

@protocol GXCycleImagesDataSource <NSObject>

- (void)handleDataWithObject:(NSString *)objc cell:(GXCycleImagesCell *)cell;

@end

// 轮播图类
@interface GXCycleImages : UIView
@property (nonatomic, strong) NSArray *imagesArray;
@property (nonatomic, strong) UILabel *label;
@property (nonatomic, strong) GXCycleImagesCell *cell;
@property (nonatomic, weak) id <clickCellDelegate> cycleDelegate;
@property (nonatomic, weak) id <GXCycleImagesDataSource> dataSource;
@end


// 自定义cell类
@interface GXCycleImagesCell : UICollectionViewCell
@property (nonatomic, strong) UIImageView *imageView;
@property (nonatomic, strong) UILabel *label;
@end

